package com.suoluo.zenadmin.service.app;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.suoluo.zenadmin.dao.app.AppDAO;
import com.suoluo.zenadmin.vo.app.AppInstanceVO;

public class AppServiceImpl implements AppService{

	@Autowired
	private AppDAO appDAO;
	

	@Override
	public AppInstanceVO findTokenByTypeAndDataId(int type, int dataId) {
		return appDAO.findTokenByTypeAndDataId(type,dataId);
	}


	@Override
	public List<AppInstanceVO> findListApp(int startpage, int rows) {
		return appDAO.findListApp(startpage,rows);
	}


	@Override
	public int findAppCount() {
		return appDAO.findAppCount();
	}


	@Override
	public void saveApp(AppInstanceVO app) {

		appDAO.saveApp(app);
	}


	@Override
	public AppInstanceVO findAppInstanceById(int id) {
		return appDAO.findAppInstanceById(id);
	}


	@Override
	public void updateApp(AppInstanceVO app) {
		appDAO.updateApp(app);
	}
}
